package cn.bdqn.listener;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

import cn.bdqn.util.VarUtil;

public class UserOnline implements HttpSessionBindingListener {

	@Override
	public void valueBound(HttpSessionBindingEvent event) {
		//在线人数+1
		VarUtil.ONLINE_COUNT++;

	}

	@Override
	public void valueUnbound(HttpSessionBindingEvent event) {
		//在线人数+1
		VarUtil.ONLINE_COUNT--;

	}

}
